package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.ITemplateScheduleDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.TemplateSchedule;
import com.ricchieri.service.interf.ITemplateScheduleService;

@Transactional(readOnly = true)
public class TemplateScheduleService implements ITemplateScheduleService, Serializable {
	private static final long serialVersionUID = 8617614540582400705L;
	ITemplateScheduleDao templateScheduleDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<TemplateSchedule> getAllTemplateSchedule() {
		BasicFilter filter = new BasicFilter();
		return templateScheduleDao.getAllTemplateSchedule(filter);
	}

	public ITemplateScheduleDao getTemplateScheduleDao() {
		return templateScheduleDao;
	}

	public void setTemplateScheduleDao(ITemplateScheduleDao templateScheduleDao) {
		this.templateScheduleDao = templateScheduleDao;
	}
}
